import {createMemoryHistory, createRouter} from 'vue-router'
//导入图标
import {Document, Menu as IconMenu, Setting } from '@element-plus/icons-vue'

//路由配置
const routes = [

	{
		index: '1',
		title: "用户管理",
		icon: Document,
		children: [{
				path: '/indocissue',
				component: import('../components/UserSelect.vue'),
				name: '用户查询'
			},
			{
				path: '/outdocissue',
				component: import('../components/OutdocIssue.vue'),
				name: '出库下发'
			}
		]
	},
	{
		index: '2',
		title: "日志",
		icon: IconMenu,
		children: [{
			path: '/log',
			component: import('../components/Log.vue'),
			name: '日志'
		}]
	}


]

const router = createRouter({
	history: createMemoryHistory('/vue3demo/'),
	routes,
})

export default router